package com.awenhui.demo.dao;

import com.awenhui.demo.model.entity.UserRoleEntity;
import org.apache.ibatis.annotations.Insert;

/**
 * @author yuxf
 * @version 1.0
 * @date 2020/5/6 17:30
 */
public interface UserRoleMapper {
    /**
     * 添加用户角色关系
     * @param entity
     * @return
     */
    @Insert("insert into ua_user_role(id,user_id,role_id) values(#{id},#{userId},#{roleId})")
    int addUserRole(UserRoleEntity entity);
}
